#include <string>
#include <stdio.h>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <fstream>
#include <stdlib.h>

#include <math.h>



using namespace std;



int main(){

	double value, esist, ejack;	

        ////////////////////////////
        /// Read input file
        ///////////////////////////

        char filename_input [1024];
        sprintf (filename_input, "input.prec");
        ifstream f_in (filename_input);
        if (!f_in) cout<< "Cannot open "<< filename_input<<endl;
        else{
		f_in>>value;
		f_in>>ejack;
		f_in>>esist;
        }
        f_in.close();

/*	int ncifrassist=0;
	int ncifrasjack=0;
	double auxsist=esist;
	double auxjack=ejack;
		
	while (auxsist<1){
		auxsist=auxsist*10;
		ncifrassist++;
	}
       while (auxjack<1){
                auxjack=auxjack*10;
                ncifrasjack++;
        }
	
	int ncifras;
	if (ncifrasjack>ncifrassist) ncifras=ncifrasjack;
	else ncifras=ncifrassist;
*/
	int ncifras=3;

	double esist_parentesis=esist;
	double ejack_parentesis=ejack;
	for (int n=0; n<ncifras; n++) {
		esist_parentesis=esist_parentesis*10;
		ejack_parentesis=ejack_parentesis*10;
	}
	//if (fabs(value)<1) cout<<setprecision (ncifras)<<value<<endl;
	//if (fabs(value)>=1) {
		if(ncifras==0) printf("%0.0f\n",value);
		else if(ncifras==1) printf("%0.1f\n", value);
		else if(ncifras==2) printf("%0.2f\n", value);
		else if(ncifras==3) printf("%0.3f\n", value);
                else if(ncifras==4) printf("%0.4f\n", value);
                else if(ncifras==5) printf("%0.5f\n", value);
                else if(ncifras==6) printf("%0.6f\n", value);
                else if(ncifras==7) printf("%0.7f\n", value);
                else if(ncifras==8) printf("%0.8f\n", value);

//	}
	cout<<round(ejack_parentesis)<<endl;
	cout<<round(esist_parentesis)<<endl;
 
        return 0;
}



